package cn.iocoder.yudao.module.erp.controller.admin.priaccount.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - ERP 一级库台账新增/修改 Request VO")
@Data
public class PriAccountSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8700")
    private Long id;
    @Schema(description = "主单id")
    private String mainId;
    @Schema(description = "事务类型（出库、入库、其他）")
    private String affairs;

    @Schema(description = "事务编号", example = "7501")
    private String affairsId;

    @Schema(description = "单位id", example = "17622")
    private String deptId;

    @Schema(description = "产品名称", example = "张三")
    private String productName;

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "9928")
    @NotEmpty(message = "产品编号不能为空")
    private String productId;

    @Schema(description = "产品单位")
    private String productUnit;

    @Schema(description = "产品规格", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品规格不能为空")
    private String productStandards;

    @Schema(description = "产品单价", example = "18413")
    private BigDecimal productPrice;

    @Schema(description = "批次")
    private String productBatch;

    @Schema(description = "批次")
    private String inboundBatch;


    @Schema(description = "有效期")
    private LocalDateTime productValidityDate;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "30089")
    @NotEmpty(message = "数量不能为空")
    private String count;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "状态", example = "1")
    private Long status;

    @Schema(description = "流程实例的编号", example = "4293")
    private String processInstanceId;

    @Schema(description = "产品单位编号")
    private Long productUnitId;

    @Schema(description = "产品单位")
    private String productUnitName;

    @Schema(description = "产品分类编号")
    private Long productCategoryId;

    @Schema(description = "产品分类名称")
    private String productCategoryName;

    @Schema(description = "产品采购价格")
    private BigDecimal productPurchasePrice;



}